<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据分类</title>
    <script src="https://cdn.bootcss.com/jquery/2.1.0/jquery.js"></script>
    <script>
        $(function () {


        })
    </script>
</head>
<body>

<a href="<?php echo U('addforms');?>">添加</a>

<form method="get" action="<?php echo U();?>">

    <input type="text" name="Souyiz" id="Souyiz" value="<?php echo I('get.Souyiz');?>">
    <button id="subbton">搜索</button>

</form>



<table width="90%" border="1px solid blue">

    <tr>
        <th>uid</th>
        <th>user_name</th>
        <th>user_pwd</th>
        <th>操作</th>
    </tr>

     <?php if(is_array($data)): foreach($data as $key=>$val): ?><tr>
              <td><?php echo ($val['uid']); ?></td>
              <td><?php echo ($val['user_name']); ?></td>
              <td><?php echo ($val['user_pwd']); ?></td>
              <td>
                  <a href="<?php echo u('Updata',array('uid'=>$val['uid']));?>">编辑</a>
                  <a href="<?php echo U('deleteuid',array('uid'=>$val['uid']));?>">删除</a>
              </td>
            </tr><?php endforeach; endif; ?>
     <tr>
         <td colspan="4"><?php echo ($show); ?></td>
     </tr>


</table>

</body>
</html>